package org.smog.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * 带long 类型自增Id的实体基类
 *
 * @Description: Created by IntelliJ IDEA.
 * @project_name: smogTemp
 * @time: 2020-05-15 16:40
 * @email: 17685306043@163.com
 * @author: huangZhongYao
 */
@Data
public abstract class AbstractLongAutoEntity implements IEntity<Long> {

    private static final long serialVersionUID = -3898557798131280092L;
    @TableId(
            type = IdType.AUTO
    )
    Long id;

    @Override
    public Long getId() {
        return id;
    }
}
